import Mock from 'mockjs';

//
const qualityScheme = Mock.mock({
    "data|3": [{
        'id|+1': 1,
        "scenarioName": "@ctitle",
        "associationRules": "@integer(0, 100)",
        "checkRange": ["@date(yyyy-MM-dd)","@date(yyyy-MM-dd)"],
        "ExecutionFrequency|1": ['单次', '重复'],
        'executionCycle|1': ['每天', '每周周一', '每月1号', '每年1月'],
        "excutionTime": "@datetime('yyyy-MM-dd HH:mm:ss')",
        "status|1-2": true,
        "creator": "@cname",
        "createTime": "@datetime('yyyy-MM-dd HH:mm:ss')",
        "problemLevel|1": ['一般', '重要', '严重'],
        "remark": "@csentence(0,50)",
    }]
})
export function getQualityScheme() {
    return {
        code: 200,
        data: qualityScheme.data
    }
}
export function postQualityScheme() {
    return {
        code: 200,
        data: [],
        message: "添加成功",
        success: true,
    }
}
export function deleteQualityScheme() {
    return {
        code: 200,
        data: [],
        message: '删除成功',
        success: true,
    }
}
/* export function postQualityScheme(){
    return {
        code:200,
        data:[],
        message:'修改成功',
        success:true,
    }
} */